package com.chain.qs.modules.biz.service;

import com.chain.qs.common.service.CrudService;
import com.chain.qs.modules.biz.dao.StationGroupCfgDao;
import com.chain.qs.modules.biz.entity.StationGroupCfg;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * 设备Service
 *
 * @author wangzhiping
 */
@Service
//@Transactional(readOnly = true)
public class StationGroupCfgService extends CrudService<StationGroupCfgDao, StationGroupCfg> {
    public List<StationGroupCfg> equlistByGroup(String sGroupId) {
        return dao.equlistByGroup(sGroupId);
    }

    public StationGroupCfg getLastOne() {
        return dao.getLastOne();
    }
    public StationGroupCfg getOne(String sgcId){
        return dao.getOne(sgcId);
    }
}
